#include <func.h>

int main(int argc,char *argv[])
{
    pid_t pid=fork();
    int status;
    if(0==pid)
    {
        printf("I am child!\n");
        return 0;
    }
    else
    {
        printf("I am parent!\n");
        pid_t rid=waitpid(pid,&status,WNOHANG);
        //while(1);
    }
    return 0;
}

